home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Prog / T / TC Prog Guide.cpt / picture ƒ / class.h < prev    next >
Text File  |  1991-02-16  |  774b  |  39 lines

  1. /*
  2. *   FILE:    class.h
  3. *   AUTHOR:  R.G.
  4. *   CREATED: June 25, 1990
  5. *   
  6. *   header file defines Generic_Class and ensures Think C/C++
  7. *    compatibility
  8. */
  9.  
  10. # ifndef    class_h            /* to avoid header reinclusion in C++ */
  11. # define    class_h
  12.  
  13. # ifdef    THINK_C
  14. # include    "oops.h"
  15. # include    "MacTypes.h"
  16. # define    virtual            /* for TC/C++ compatibility */
  17. # endif
  18.  
  19. # define    TRUE    1
  20. # define    FALSE    0
  21.  
  22. typedef        int        boolean;
  23.  
  24. /******************************************************************
  25. *   root class for all classes
  26. ******************************************************************/
  27. # ifdef        THINK_C
  28. struct  Generic_Class:indirect
  29. # else
  30. struct    Generic_Class        /* for TC/C++ compatibility */
  31. # endif
  32. {
  33.     virtual    boolean    init(void);
  34.     virtual    boolean    destroy(void);
  35. };
  36.  
  37. # endif
  38.  
  39.